<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Library</OutputType>
    <CLRTestKind>BuildAndRun</CLRTestKind>
    <CLRTestPriority>0</CLRTestPriority>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <NativeLib>Shared</NativeLib>
    <!-- Unable to compile a project with the Library output type for apple mobile devices -->
    <CLRTestTargetUnsupported Condition="'$(TargetsAppleMobile)' == 'true'">true</CLRTestTargetUnsupported>
  </PropertyGroup>

  <PropertyGroup>
    <CLRTestBatchPreCommands><![CDATA[
$(CLRTestBatchPreCommands)
mkdir native 2>nul
copy /y clang_rt.* native\
copy /y SharedLibraryDriver.exe native\SharedLibrary.exe
]]></CLRTestBatchPreCommands>

    <CLRTestBashPreCommands><![CDATA[
$(CLRTestBashPreCommands)
mkdir -p native
cp libclang_rt.* native/
cp SharedLibraryDriver native/SharedLibrary
]]></CLRTestBashPreCommands>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="SharedLibrary.cs" />
  </ItemGroup>
  <ItemGroup>
    <CMakeProjectReference Include="CMakeLists.txt" />
  </ItemGroup>
</Project>
